<?php session_start(); ?>
<?php include_once('misc/class_config.php'); ?>

<?php 
	include('access_control/page_access.php');
	setPreviousPage();
	$currentUser = new user();
	$currentUser->isTimedOut();
?>

<?php
	if(!$currentUser->isLoggedIn())
	{
		include('controller/loginformcontroller.php'); 
	}
?>

<?php $pageTitle = "About Us | Everything"; ?>
<?php include('layout/page_start.php'); ?>
<?php include('layout/page_header.php'); ?>
<?php
	if(!$currentUser->loggedIn)
	{
		include('layout/loginform.php'); 
	}
?>
<?php include('layout/menu_bar.php'); ?>
<div id="main_content_div">
	<?php
		if($currentUser->loggedIn)
		{
			if($currentUser->timedOut)
			{
				include_once "layout/timeout.php";
				$currentUser->timeoutUser();
			}
		}
	?>
	<div class="page_heading_div"><h3>About Everything Co.</h3></div>
</div>

<?php include('layout/page_footer.php'); ?>
<?php include('layout/page_end.php'); ?>
<?php setCurrentPage();?>
